<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>My JSP 'modifyPassword.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
	function validate(){
	var new1=document.getElementById("NewPsd").value;
	var new2=document.getElementById("reNewPsd").value;
	if(new1!=new2||new1==null||new1==""||new2==""||new2==null)
	{
		alert("密码为空或两次输入的密码不一致"+"\n\n"+"请重新输入");
		return false;
	}
	else
	{
	return true;
	}
	}
	</script>

	</head>

	<body style="background-color:#F5F9F9;">
		<form id="modifyPsd" onsubmit="return validate();" method="post" action="zcg/modifyAdminPassword.action"
			style="width: 80%; height: 20%; margin-left:26%; margin-top: 10%; background-color: #F5F9F9; border: 1px solid #8B76D3;">
			<div>
				<table id="tablePsd">
					<tr>
						<td>
							新密码:
						</td>
						<td>
							<s:password id="NewPsd" theme="simple" name="password"></s:password>
						</td>
					</tr>
					<tr>
						<td>
							重复新密码:
						</td>
						<td>
							<s:password id="reNewPsd" theme="simple" name="rePassword"></s:password>
						</td>
					</tr>
					<tr>
						<td>
							<input type="submit" value="确定" />
						</td>
						<td>
							<input type="reset" value="取消" />
						</td>
					</tr>
				</table>
			</div>
		</form>
		<div id="notes1" style="margin-left:35%;color:red;font:18px;">注意：若忘记密码将无法进入系统</div>

	</body>
</html>
